﻿using System.Device.Location;

namespace Tequila.Phone.Location
{
    public class GeoLocation
    {
        private readonly string _name;
        private readonly GeoCoordinate _coordinate;

        public GeoLocation(string name, GeoCoordinate coordinate)
        {
            _name = name;
            _coordinate = coordinate;
        }

        public string Name
        {
            get
            {
                return _name;
            }
        }

        public GeoCoordinate Coordinate
        {
            get
            {
                return _coordinate;
            }
        }

        public static  GeoLocation Empty
        {
            get
            {
                return new GeoLocation(string.Empty, GeoCoordinate.Unknown);
            }
        }
    }
}
